Optimal. Leaf size=91 \[ \frac{\tan ^3(e+f x) \sqrt{a \cos ^2(e+f x)}}{2 f}+\frac{3 \tan (e+f x) \sqrt{a \cos ^2(e+f x)}}{2 f}-\frac{3 \sec (e+f x) \sqrt{a \cos ^2(e+f x)} \tanh ^{-1}(\sin (e+f x))}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.123761, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {3176, 3207, 2592, 288, 321, 206} \[ \frac{\tan ^3(e+f x) \sqrt{a \cos ^2(e+f x)}}{2 f}+\frac{3 \tan (e+f x) \sqrt{a \cos ^2(e+f x)}}{2 f}-\frac{3 \sec (e+f x) \sqrt{a \cos ^2(e+f x)} \tanh ^{-1}(\sin (e+f x))}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3207
Rule 2592
Rule 288
Rule 321
Rule 206
Rubi steps
\begin{align*} \int \sqrt{a-a \sin ^2(e+f x)} \tan ^4(e+f x) \, dx &=\int \sqrt{a \cos ^2(e+f x)} \tan ^4(e+f x) \, dx\\ &=\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \sin (e+f x) \tan ^3(e+f x) \, dx\\ &=\frac{\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \frac{x^4}{\left (1-x^2\right )^2} \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac{\sqrt{a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f}-\frac{\left (3 \sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \frac{x^2}{1-x^2} \, dx,x,\sin (e+f x)\right )}{2 f}\\ &=\frac{3 \sqrt{a \cos ^2(e+f x)} \tan (e+f x)}{2 f}+\frac{\sqrt{a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f}-\frac{\left (3 \sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sin (e+f x)\right )}{2 f}\\ &=-\frac{3 \tanh ^{-1}(\sin (e+f x)) \sqrt{a \cos ^2(e+f x)} \sec (e+f x)}{2 f}+\frac{3 \sqrt{a \cos ^2(e+f x)} \tan (e+f x)}{2 f}+\frac{\sqrt{a \cos ^2(e+f x)} \tan ^3(e+f x)}{2 f}\\ \end{align*}
Mathematica [A] time = 0.195319, size = 55, normalized size = 0.6 \[ \frac{a \left ((\cos (2 (e+f x))+2) \tan (e+f x)-3 \cos (e+f x) \tanh ^{-1}(\sin (e+f x))\right )}{2 f \sqrt{a \cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.273, size = 84, normalized size = 0.9 \begin{align*}{\frac{a \left ( 4\, \left ( \cos \left ( fx+e \right ) \right ) ^{2}\sin \left ( fx+e \right ) +2\,\sin \left ( fx+e \right ) + \left ( -3\,\ln \left ( 1+\sin \left ( fx+e \right ) \right ) +3\,\ln \left ( -1+\sin \left ( fx+e \right ) \right ) \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2} \right ) }{4\,f\cos \left ( fx+e \right ) }{\frac{1}{\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.91776, size = 1116, normalized size = 12.26 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.6846, size = 204, normalized size = 2.24 \begin{align*} -\frac{\sqrt{a \cos \left (f x + e\right )^{2}}{\left (3 \, \cos \left (f x + e\right )^{2} \log \left (-\frac{\sin \left (f x + e\right ) + 1}{\sin \left (f x + e\right ) - 1}\right ) - 2 \,{\left (2 \, \cos \left (f x + e\right )^{2} + 1\right )} \sin \left (f x + e\right )\right )}}{4 \, f \cos \left (f x + e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )} \tan ^{4}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.98275, size = 285, normalized size = 3.13 \begin{align*} \frac{{\left (3 \, \log \left ({\left | \frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 2 \right |}\right ) \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) - 3 \, \log \left ({\left | \frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 2 \right |}\right ) \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) - \frac{4 \,{\left (3 \,{\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )}^{2} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) - 8 \, \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right )\right )}}{{\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )}^{3} - \frac{4}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} - 4 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}\right )} \sqrt{a}}{4 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]